﻿//
// Created: 2018/10/18
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.ZXBuiness
{
    public class  ZXUserInfo:IEntity
    {

        ///<summary>
        ///用户直销ID
        ///<summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long ZX_UserId  { get; set; } 
       ///<summary>
       ///微信用户ID
       ///<summary>
       public string  WX_UserId  { get; set; } 
       ///<summary>
       ///用户直销系统里用户名
       ///<summary>
       public string ZX_UserName  { get; set; } 
        /// <summary>
        /// 密码 （现阶段不设定密码）
        /// </summary>
        public string ZX_UserPwd { get; set; }
       ///<summary>
       ///级别
       ///<summary>
        public int? ZX_UserLevel  { get; set; }

        /// <summary>
        /// 直销模式下 用户类型
        /// 0 是正常用户
        /// 1-99 预留定义的各种 
        /// 100 是系统的销售 用于推广用的 
        /// </summary>
        public int ZX_UserType { get; set; }
       ///<summary>
       ///上级
       ///<summary>
        public long? ZX_UserParentId  { get; set; } 
       ///<summary>
       ///用户来源 0 自行关注注册 1 微信推荐而来 依次类推
       ///<summary>
       public int? ZX_UserSource  { get; set; } 
       ///<summary>
       ///创建时间
       ///<summary>
       public DateTime CreateTime  { get; set; } 
       ///<summary>
       ///直销平台
       ///<summary>
       public string ZX_Platform  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime UpdateTime  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Updater  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Remarks  { get; set; } 
         /// <summary>
         /// 积分
         /// </summary>
        public  long JiFeng { get; set; }

        public string BindPhone { get; set; }
        public string BindQQ { get; set; }
        public string BindWeiXin { get; set; }
        public string BindZhiFuBao { get; set; }
        public string BindBankCard { get; set; }
        public decimal HaveEarnMoney { get; set; }
       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}